﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.DTO.Shopfloor.DTO;
using PowerHub.MES.DTO.Shopfloor.QueryDTO;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.Shopfloor;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IShopfloor
{
    /// <summary>
    /// 工作站接口层
    /// </summary>
    public interface IShopfloor_WorkStationServices
    {
        /// <summary>
        /// 获取工作站列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<Shopfloor_WorkStation>>> GetShopfloor_WorkStationPageListAsync(QueryShopfloor_WorkStationDTO query);


        /// <summary>
        /// 添加工作站
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateShopfloor_WorkStationAsync(Shopfloor_WorkStationDTO query);

        /// <summary>
        /// 批量删除工作站
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionShopfloor_WorkStationAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateShopfloor_WorkStationAsync(Shopfloor_WorkStationDTO query);
    }
}
